//
//  PopupFanController.h
//  HWMonitor
//
//  Created by Kozlek on 08.02.14.
//  Copyright (c) 2014 kozlek. All rights reserved.
//

/*
 *  Copyright (c) 2013 Natan Zalkin <natan.zalkin@me.com>. All rights reserved.
 *
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public License
 *  as published by the Free Software Foundation; either version 2
 *  of the License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 *  02111-1307, USA.
 *
 */

@class HWMColorTheme, HWMSmcFanController;

@interface PopupFanController : NSViewController <NSTableViewDataSource, NSTableViewDelegate>
{
    NSArray *_levelsSnapshot;
}

@property (nonatomic, strong) HWMSmcFanController * controller;

@property (readonly) NSArray * inputSources;

//@property (assign) IBOutlet NSButton *controlledCheck;
//@property (assign) IBOutlet NSSlider *targetSlider;
//@property (assign) IBOutlet NSTextField *targetTextField;

@property (assign) IBOutlet NSSegmentedControl *enabledSwitch;
@property (assign) IBOutlet NSPopUpButton *inputsPopUp;
@property (assign) IBOutlet NSTextField *inputLabel;
@property (assign) IBOutlet NSTextField *outputLabel;
@property (assign) IBOutlet NSTableView *levelsTableView;
@property (assign) IBOutlet NSSlider *minSlider;
@property (assign) IBOutlet NSSlider *maxSlider;
@property (assign) IBOutlet NSTextField *minLabel;
@property (assign) IBOutlet NSTextField *maxLabel;
@property (assign) IBOutlet NSButton *rangeSwitch;

@property (assign) IBOutlet NSLayoutConstraint *rangeHeightConstraint;
@property (assign) IBOutlet NSLayoutConstraint *levelsHeightConstraint;

-(IBAction)rangeSwitchChanged:(id)sender;

@end
